def read_imagesb(root_dir, is_train=True):
    features = []
    labels = []
    for i, fname in enumerate(os.listdir(os.path.join(root_dir, 'label'))):
        if i >= 100 and 0:
            break
        lab_path = os.path.join(root_dir, 'label', fname)
        pic_path = os.path.join(root_dir, 'raw', fname)
        if os.path.isfile(lab_path) and os.path.isfile(pic_path):
            feature_image = Image.open(pic_path)
            label_image = Image.open(lab_path)
            # 对 feature 和 label 应用相同的转换
            features.append(transform(feature_image))
            labels.append(transform(label_image))
    print(i)
    return features, labels

#黑白 和彩色兼容